<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:71:"D:\xampp\htdocs\lvyou\public/../application/index\view\index\index.html";i:1529486874;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<link rel="stylesheet" type="text/css" href="__CSS__/index.css"/>
	<link rel="stylesheet" type="text/css" href="__CSS__/swiper-3.4.2.min.css"/>
	<script src="__JS__/jquery-3.3.1.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="__JS__/swiper-3.4.2.min.js" type="text/javascript" charset="utf-8"></script>

</head>
<script>
    (function(doc, win) {
        var docEl = doc.documentElement,
            resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
            recalc = function() {
                var clientWidth = docEl.clientWidth;
                if(!clientWidth) return;
                docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
            };
        if(!doc.addEventListener) return;
        win.addEventListener(resizeEvt, recalc, false);
        doc.addEventListener('DOMContentLoaded', recalc, false);
    })(document, window);
</script>
<style>
	.container{
		height: 2rem;
		width: 100%;
		margin-top: 0.8rem;
	}
</style>
<body>
<div class="container">
	<header>
		<div class="heL">
			<span>廊坊</span>
			<img src="__IMG__/down.png" alt="" class="down">
		</div>
		<div class="heM">
			<img src="__IMG__/sousuo.png" alt="">
			<input type="text" class="ser" placeholder="搜索目的地">
		</div>
		<div class="heR">
			<?php if(\think\Request::instance()->session('id') != ''): ?>
			<a href="<?php echo url('user/user'); ?>"><img src="__IMG__/<?php echo \think\Session::get('pic'); ?>" alt=""></a>
			<?php else: ?>
			<a href="<?php echo url('login/login'); ?>"><img src="__IMG__/denglu.png" alt=""> </a>
			<?php endif; ?>
			<!--<?php if(\think\Request::instance()->session('login_admin.truename') != ''): ?><?php echo \think\Request::instance()->session('login_admin.truename'); else: ?>未知<?php endif; ?>-->
			<!--<if condition="<?php echo \think\Session::get('id'); ?>">-->

			<!--<else />-->
			<!--<img src="__IMG__/denglu.png" alt="">-->
			<!--</if>-->
			<!--<img src="__IMG__/denglu.png" alt="">-->

		</div>
	</header>
	<!--<img src="__IMG__/bj1.png" alt="" class="bj1">-->
	<div class="swiper-container">
		<div class="swiper-wrapper">
			<?php if(is_array($bannerList) || $bannerList instanceof \think\Collection || $bannerList instanceof \think\Paginator): $i = 0; $__LIST__ = $bannerList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
			<div class="swiper-slide">
				<a href="<?php echo $vo['url']; ?>" style="color: #fff; text-decoration: none" ><img class="bj1" src="/uploads/images/<?php echo $vo['pic']; ?>"/></a>
			</div>
			<?php endforeach; endif; else: echo "" ;endif; ?>


		</div>
	</div>
	<!--旅游-->
	<?php if(is_array($tripCate) || $tripCate instanceof \think\Collection || $tripCate instanceof \think\Paginator): $i = 0; $__LIST__ = $tripCate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
	<div class="tab1">

		<div class="div2">
			<a href="javascript:;" style="color: #fff; text-decoration: none" onclick="trip_index(<?php echo $vo['id']; ?>);"><?php echo $vo['name']; ?>
			</a></div>
		<ul class="div1">
			<?php if(is_array($vo['sub_category']) || $vo['sub_category'] instanceof \think\Collection || $vo['sub_category'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['sub_category'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?>
			<a href="javascript:;" style="color: #fff; text-decoration: none" onclick="trip_index(<?php echo $vo1['id']; ?>);">
				<li class="li2"id="<?php echo $vo1['id']; ?>"><?php echo $vo1['name']; ?></li></a>
			<?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
	</div>
	<?php endforeach; endif; else: echo "" ;endif; ?>

	<!--精品特卖-->
	<div class="tip1">精品特卖</div>
	<div class="tipImg">
		<?php if(is_array($tripRecom) || $tripRecom instanceof \think\Collection || $tripRecom instanceof \think\Paginator): $i = 0; $__LIST__ = $tripRecom;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
		<a href="javascript:;" style="color: #fff; text-decoration: none" onclick="trip_detail(<?php echo $vo['id']; ?>);">
			<img src="/uploads/images/<?php echo $vo['photo']; ?>" alt="">
		</a>
		<?php endforeach; endif; else: echo "" ;endif; ?>
		<!--<img src="__IMG__/icon3.png" alt="">-->
	</div>
	<!--新品推荐-->
	<div class="tip1" style="color: #e9483d">新品推荐</div>
	<div class="tipImg">
		<?php if(is_array($tripJp) || $tripJp instanceof \think\Collection || $tripJp instanceof \think\Paginator): $i = 0; $__LIST__ = $tripJp;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
		<a href="javascript:;" style="color: #fff; text-decoration: none" onclick="trip_detail(<?php echo $vo['id']; ?>);">
			<img src="/uploads/images/<?php echo $vo['photo']; ?>" alt="">
		</a>
		<?php endforeach; endif; else: echo "" ;endif; ?>
		<!--<img src="__IMG__/icon3.png" alt="">-->
	</div>
	<!--列表-->
	<ul class="list">
		<?php if(is_array($tripNew) || $tripNew instanceof \think\Collection || $tripNew instanceof \think\Paginator): $i = 0; $__LIST__ = $tripNew;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
		<li>
			<a href="javascript:;" style="color: #fff; text-decoration: none" onclick="trip_detail(<?php echo $vo['id']; ?>);">
				<div class="list-left">
					<img src="/uploads/images/<?php echo $vo['photo']; ?>" alt="">
				</div>
				<div class="list-right">
					<p class="p1"><?php echo $vo['title']; ?></p>
					<p class="p2"><span style="color: #77d8c5"><?php echo $vo['score']; ?>分</span> &nbsp <span  style="color: #ff976e"><?php echo $vo['sales_num']; ?>条点评</span></p>
					<p class="p3"><span class="sp1" style="color: #ff976e">今日可用</span><span class="sp2" style="color: #77d8c5;">公园乐园</span></p>
					<!--<p class="p4">距市中心<span>23Km</span>.上海迪士尼</p>-->
					<p class="p5" style="font-size: 0.22rem;"><span style="color: #fa463c;font-size: 0.33rem;margin-left: -30px">￥<?php echo $vo['trip_price']; ?>起</span></p>
				</div>
			</a>
		</li>
		<?php endforeach; endif; else: echo "" ;endif; ?>

	</ul>
	<p class="more">查看更多></p>
</div>
</body>

<script type="text/javascript">
    function trip_index(id){
        location.href = 'index/trip/trip/id/'+id+'.html';
    }

    function trip_detail(id){
        location.href = 'index/trip/trip_detail/id/'+id+'.html';
    }
    var swiper = new Swiper('.swiper-container', {
        direction: 'horizontal',
        loop: true,
        observer:true,
        observeParents:true,
        autoplayDisableOnInteraction : false,
        autoplay:1000
    });
</script>